package com.vf.admin.fiwork.service.impl;

import com.vf.admin.client.dao.AppMingxiDuihuanDao;
import com.vf.admin.client.dao.AppUserDao;
import com.vf.admin.common.splitpage.SplitPageBean;
import com.vf.admin.fiwork.service.WallerService;
import com.vf.admin.fiwork.util.DecimalUtils;
import com.vf.admin.miaodong.entity.AppMingxiDuihuan;
import com.vf.admin.miaodong.entity.AppSetup;
import com.vf.admin.miaodong.entity.AppUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import static com.vf.admin.utils.RandomUtil.getOrderIdByUUId;

@Service
public class WallerServiceImpl implements WallerService {

    @Autowired
    AppMingxiDuihuanDao appMingxiDuihuanDao;
    @Autowired
    AppUserDao appUserDao;

    @Override
    public List<AppMingxiDuihuan> exchangeDetails(Integer userid,SplitPageBean pageBean) {
        return appMingxiDuihuanDao.exchangeDetails(userid,pageBean);
    }

    @Override
    public AppMingxiDuihuan selectDetailsById(String id) {
        return appMingxiDuihuanDao.selectDetailsById(id);
    }
}
